package contrl;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import service.Jedis;

@Controller
public class ContrlllerBase {
	@Resource(name="jedis-client")
	Jedis jedis;
	@RequestMapping(value="/index")
	public String sys(Model model){
		model.addAttribute("msg",jedis.type("hello hessian"));
		jedis.set("key", "hessian key");
		System.out.println(jedis.get("key"));
		
		return "index";
	}
}
